info = {"name": "tom",
        "age": 18,
        "gender": "男"
        }

# 遍历获取字典中所有的键
for i in info.keys():
    print(f'字典中的键是:{i}')
# 遍历获取字典中所有的值
for i in info.values():
    print(f'字典中的值是:{i}')
# 遍历获取字典中所有的键值对
for k, v in info.items():
    print(f'{k}:{v}')
